home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / COMMUNIC / WC094B.ZIP / WINCIS.TPL < prev   
Text File  |  1992-10-31  |  18KB  |  568 lines

  1. ;***************************************************************
  2. ;* WinCis Commands Commands                                    *
  3. ;***************************************************************
  4. ;
  5. ;
  6. ;  GO           forum_name
  7. ;  RESET
  8. ;  KILLFILE     filename
  9. ;  KILLDIR      directory
  10. ;  MAKEDIR      directory
  11. ;  LIB          library_number
  12. ;
  13. ;  SCANMES
  14. ;  SCANTHR
  15. ;  SCANLIB
  16. ;  QSCNLIB
  17. ;
  18. ;  JOIN
  19. ;
  20. ;  DOWNLOAD     filename pathname
  21. ;
  22. ;  READSEC
  23. ;  READMES
  24. ;  READTHR
  25. ;  READANN
  26. ;  READMAIL
  27. ;
  28. ;  RECORD
  29. ;
  30. ;  DO           scriptfile
  31. ;
  32. ;  LOGOFF
  33. ;  OFF
  34. ;  QUIT
  35. ;
  36. ;  S
  37. ;  SE
  38. ;  SEND         text
  39. ;
  40. ;  U
  41. ;  W
  42. ;  WA
  43. ;  WAIT         text
  44. ;
  45. ;  P
  46. ;  PA
  47. ;  PAUSE        number_of_seconds
  48. ;
  49. ;  C
  50. ;  CA
  51. ;  CAPTURE      filename
  52. ;
  53. ;  PR
  54. ;  PRINT        ON, or OFF
  55. ;
  56. ;  LOG          text
  57. ;
  58. ;  EC
  59. ;  ECHO         text
  60. ;               ON, or OFF
  61. ;
  62. ;  EN
  63. ;  END
  64. ;
  65. ;  N
  66. ;  NA
  67. ;  NAME
  68. ;
  69. ;  US
  70. ;  USER
  71. ;  USERID
  72. ;  RET
  73. ;  RETURN
  74. ;
  75. ;  DEBUG        ON, or OFF
  76. ;***************************************************************
  77. ;* WinCis Variables                                            *
  78. ;***************************************************************
  79. ;       WinCis Variables are denoted by a single & characters &
  80. ;       these variables are replaced with string values at the
  81. ;       time WinCis executes the script.
  82. ;
  83. ; "&USERID"             CompuServe      UserID
  84. ; "&NAME"                               UserName
  85. ; "&PASSWORD"                           User Password
  86. ; "&GATEWAY"            Current Gateway
  87. ; "&FORUM"              Current Forum
  88. ;
  89. ;***************************************************************
  90. ;* WinCis Conditional Commands                                 *
  91. ;***************************************************************
  92. ;
  93. ;
  94. ;     '%', '?' or '@'   are prefix condition characters that can
  95. ;                       prefix any command in order to make the
  96. ;                       command conditional on the sucess of any
  97. ;                       prior command.
  98. ;
  99. ;       Each occurance of these prefix conditions denotes a
  100. ;       level of nesting that should be considered prior to
  101. ;       executing the command. Up to 10 levels of nesting
  102. ;       (or 10 prefix conditions) can be checked.
  103. ;
  104. ;       Basically processing proceeds as follows:
  105. :
  106. ;       For each Prefix condition:
  107. ;
  108. ;       For I = 0 to the Number-of-Prefix-Conditions
  109. ;               If The_Condition_At(I) = FALSE Then Skip This Command
  110. ;       Next
  111. ;
  112. ;       All Conditions are true So Perform the command and save the return code...
  113. ;
  114. ;       ReturnCode = Command()
  115. ;
  116. ;       If the command worked then ReturnCode = TRUE Else ReturnCode  = FALSE
  117. ;
  118. ;       Now set the next higher condition to the value of the ReturnCode so that
  119. ;       Other commands can be based on the success of the command just executed
  120. ;
  121. ;       Set The_Condition_At(Number-Of-Prefix-Conditions + 1) = ReturnCode
  122. ;
  123. ;
  124. ;       The Prefix Conditions Denote the following conditions
  125. ;
  126. ;
  127. ;      %   Defines a TRUE  condition at this error level
  128. ;      @   Defines a FALSE condition at this error level
  129. ;      ?   Defines a Don't Care Condition at this  error level
  130. ;
  131. ;
  132. ;       The following is an example of some of the concepts presented:
  133. ;
  134. ;
  135. ;       GO FORUM
  136. ;       ; This command will always be executed since there are no
  137. ;       ; prefix conditions.  If WinCis successfully enters the FORUM
  138. ;       ; then the condition at level 1 will be set to TRUE otherwise it
  139. ;       ; will be set to FALSE
  140. ;
  141. ;       %ECHO We entered the FORUM successfully
  142. ;       ; The ECHO command will execute only if the condition at level 1 is TRUE
  143. ;       ; The ECHO Command does not return a condition and therefore does not
  144. ;       ; affect the condition at level 2
  145. ;
  146. ;       %LIB 1
  147. ;       ; We will only go to library 1 if the condition at level 1 is TRUE
  148. ;       ; this of course depends on that success of the GO FORUM Command
  149. ;       ; If the command is executed it will set the condition at Level 2
  150. ;
  151. ;       %%SCANLIB KEY:PROGRAMS LIB:ALL
  152. ;       ; Scanning for programs will depend of the success of geting to the Library Prompt
  153. ;       ; Therefore this command depends of the sucess of both the GO FORUM and LIB 1
  154. ;       ; commands.  Here we test 2 levels of prefix conditions denoted by the fact that
  155. ;       ; there are 2 '%' characters prefixing the SCANLIB Command
  156. ;       ; If the command is executed it will set the condition at Level 3
  157. ;
  158. ;       %@ECHO Can't Enter library 1 of the FORUM
  159. ;       ; This command will only be executed if we successfully entered the forum
  160. ;       ; and were unable to enter the library.  Since the first prefix_condition is
  161. ;       ; an % the condition at level 1 must be true, this was set by the value returned
  162. ;       ; by the GO FORUM command. If GO FORUM was not successful the command would be skipped
  163. ;       ; The second prefix_condition @ indicates that the condition at level 2 must be FALSE
  164. ;       ; this condition was last established by the %LIB 1 command.
  165. ;       ; The ECHO Command does not return a condition and therefore does not
  166. ;       ; affect the condition at level 3
  167. ;
  168. ;       @ECHO Can't Enter the FORUM
  169. ;       ; This command will only be executed if the GO FORUM command was unsucessful
  170. ;       ; the @ indicates that the condition at level 1 must be FALSE.  This of course
  171. ;       ; was last set by the GO FORUM command.
  172. ;
  173. ;
  174. ;***************************************************************
  175. ;* Template Variables                                          *
  176. ;***************************************************************
  177. ;
  178. ;       Template Variables are denoted by the characters &&
  179. ;       these variables are replaced with string values at the
  180. ;       time WinCis generates the script.  Don't confuse template
  181. ;       variables with script variables.  Script variables are
  182. ;       evaluated when the script is executed by WinCis
  183. ;
  184. ;
  185. ;
  186. ; "&&USERID"        CompuServe UserID
  187. ; "&&USERNAME"                 UserName
  188. ; "&&PHONENUMBER"              PhoneNumber
  189. ; "&&LOGONSCRIPT"              LogonScript
  190. ;
  191. ; "&&GATEWAY"         Forum    Gateway
  192. ; "&&FORUMNAME"                Name
  193. ; "&&FORUMTITLE",              Title
  194. ; "&&CONTROLPATH"     Path For Control Files
  195. ; "&&DOWNLOADPATH"             Downloads
  196. ; "&&MESSAGEPATH"              Messages
  197. ; "&&SCRIPTPATH"               Scripts
  198. ;
  199. ; "&&LIBRARY"         Library  Number
  200. ; "&&DOWNLOADFILE"    Download FileName
  201. ; "&&DOWNLOADSIZE"             Filesize
  202. ; "&&DOWNLOADDATE"             Filedate
  203. ; "&&DOWNLOADCOUNT"            #DownLoads
  204. ; "&&DOWNLOADUPLD"             Uploaded by this CIS User
  205. ; "&&DOWNLOADTITLE"            Title Description of File
  206. ;
  207. ; "&&SCANFILE"        LibraryScan FileName
  208. ; "&&SCANAGE"                     Days old or age
  209. ; "&&SCANLIBS"                    Libraries to scan through
  210. ; "&&SCANKEYWORDS"                Keywords to look for
  211. ; "&&SCANTYPE"                    Short or long descriptions
  212. ; "&&SCANDESC"                    Description of this scan
  213. ;
  214. ; "&&READMSGSECTION"  ReadMessage Section Number
  215. ; "&&READMSGNUMBNER"              Thread or Message Number
  216. ;
  217. ; "&&VERSION"         WinCis Version Number
  218. ; "&&DATE"            Date script was created
  219. ; "&&TIME"            Time script was created
  220. ;
  221. ;
  222. ;
  223. ;
  224. [PROLOG]
  225. ;
  226. ; This script file was created on &&DATE at &&TIME by &&USERNAME.
  227. ;
  228. ;***********************************************************************
  229. ;       WinCIS &&VERSION
  230. ;       Copyright(C) 1992
  231. ;       Larry Lee (76670,1471)
  232. ;       16038 Augusta Drive
  233. ;       Chino Hills, Ca 91709
  234. ;***********************************************************************
  235. ;
  236. ;
  237. WAIT !
  238. SEND SET BRIEF YES^M
  239. WAIT !
  240. SEND SET PAGED NO^M
  241. WAIT !
  242. SEND SET BLANK YES^M
  243. WAIT !
  244. ; SEND SET WIDTH 80^M
  245. ; WAIT !
  246. ;
  247. [EPILOG]
  248. ;
  249. ;***********************************************************************
  250. ; All Done, Just Log off CompuServe
  251. ;***********************************************************************
  252. ;
  253. LOGOFF
  254.  
  255. [READ MAIL]
  256. ;
  257. ; Read Any Waiting CompuServe Mail
  258. ;
  259.